﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KP_CommonLibrary.KP_CoreUI
{
    public enum FormState
    {
        Update,
        Insert,
        Normal,
        Unspecified
    }
    public delegate void FormStateChangingHandler(object sender, FormStateChangingArgs e);
    public class FormStateChangingArgs : EventArgs
    {
        public FormState OldState { set; get; }
        public FormState NewState { set; get; }
        public bool Cancel { get; set; }

        public FormStateChangingArgs()
            : base()
        {
            Cancel = false;
        }

        public FormStateChangingArgs(FormState oldState, FormState newSate)
            : base()
        {
            OldState = oldState;
            NewState = NewState;
            Cancel = false;
        }

    }

}
